;(function($){
    if(document.cookie !== ""){
        let logCookie = document.cookie;
        logCookie = logCookie.split("=");
        setTimeout(() => {
            $(".nav-header-regis-login").css({
                "display" : "none"
            })
            $(".logining").css({
                "display" : "block"
            })
            $(".logining .userName").html(logCookie[1]);
        }, 1); 
    }else{
        setTimeout(() => {
            $(".nav-header-regis-login").css({
                "display" : "flex"
            })
            $(".logining").css({
                "display" : "none"
            })
        }, 1); 
    }
})(jQuery);